/****************************************************************************
*                   
* settingstabs.h	
*                                                                         
* ALaRI 2008												               
*                                                                         
****************************************************************************/

#pragma once

#if !defined(__SETTINGSTABS_H)
#define __SETTINGSTABS_H

/****************************************************************************
* Includes			
****************************************************************************/
#include <QWidget>
#include "../../common/defs.h"
#include "../../common/property.h"
/****************************************************************************
* Forward declarations
****************************************************************************/

/****************************************************************************
* CSimulationTab
****************************************************************************/
class CSimulationTab : public QWidget
{
	Q_OBJECT

public :
	CSimulationTab(CSimProperty *pQObjAppProp,  QWidget *pParent = 0);
	inline double frequency() const { return m_dblFreq; }
	inline int resolution() const { return m_nResolution; }
	~CSimulationTab() {}

private slots:
	inline void setFrequency(double dblFreq) { m_dblFreq = dblFreq; }
	inline void setResolution(int nResoltion) {  m_nResolution = nResoltion; }

protected :
	double m_dblFreq;
	int m_nResolution;
};

/****************************************************************************
* CSimulationTab
****************************************************************************/
class CSensorTab : public QWidget
{
	Q_OBJECT

public :
	CSensorTab(CSimProperty *pQObjAppProp,  QWidget *pParent = 0);
	~CSensorTab() {}
	inline int outputPower() const { return m_nOutputPower; }
	inline int sensitivity() const { return m_nSensitivity; }

protected :
	int m_nOutputPower;
	int m_nSensitivity;

private slots:
	inline void setOutputPower(int nOutputPower) { m_nOutputPower = nOutputPower; }
	inline void setSensitivity(int nSensitivity) {  m_nSensitivity = nSensitivity; }

};

#endif /* __SETTINGSTABS_H */
/****************************************************************************
* End of file	
****************************************************************************/

